package com.ai.platform.spider.download;

import java.util.Date;

/**
 * 功能描述
 * 创建者 yeyingsheng
 * 创建时间 2018年07月01日
 */
public class Cookie extends Header{
    public Cookie(String name, String value) {
        super(name, value);
    }
    public Cookie(String name, String value, String path) {
        super(name, value);
        this.path = path;
    }

    public Cookie(String name, String value, String domain, String path, Date expiryDate, boolean secure) {
        super(name, value);
        this.domain = domain;
        this.path = path;
        this.expiryDate = expiryDate;
        this.secure = secure;
    }

    public String getPath() {
        return path;
    }
    public void setPath(String path) {
        this.path = path;
    }
    public Date getExpiryDate() {
        return expiryDate;
    }
    public void setExpiryDate(Date expiryDate) {
        this.expiryDate = expiryDate;
    }
    public boolean isSecure() {
        return secure;
    }
    public void setSecure(boolean secure) {
        this.secure = secure;
    }
    public void setDomain(String domain) {
        this.domain = domain;
    }
    public String getDomain() {
        return this.domain;
    }
    private String domain;
    private String path;
    private Date expiryDate;
    private boolean secure;
}
